﻿using Orchard.Data;
using Orchard.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Wanda.Cms.Data
{
    public interface ICmsRepository<T> : IRepository<T>
    {

    }

    public class CmsRepository<T> : Repository<T>, ICmsRepository<T> where T : class
    {
        public CmsRepository(Func<string, ISessionLocator> sessionLocatorFactory)
            : base(sessionLocatorFactory("CMSDb"))
        {
            Logger = NullLogger.Instance;
        }
    }
}